import { IsNotEmpty } from 'class-validator'
import { IsMsgCode } from './config/pipe/validation.pipe'

export class sendCodeEnterDto {
  @IsNotEmpty({ message: '验证码不能为空' })
  @IsMsgCode({ length: 4 })
  readonly code: string | number
}